package com.example.littleken.secret.tools;

/**本类用于通讯录格式化
 * Created by littleken on 2018/4/25.
 */

/**本类主要处理手机号码统一格式化工作
 * Created by littleken on 2018/4/27.
 */
public class PhoneFormat {

    public String phoneFormat(String phone){
        if(phone.contains("-")){
            phone = phone.replace("-"," ");
        }
        if(phone.contains(" ")){
            phone = phone.replace(" ","");
        }
        return phone;
    }
}
